//
//  UIMacro.h
//  QuickAskCommunity
//
//  Created by yuemei on 2017/10/31.
//  Copyright © 2017年 ym. All rights reserved.
//

#define GGRealValue(value) ((value)/375.0f*[UIScreen mainScreen].bounds.size.width)

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

//16位颜色
#define HEXColor(hexValue,alphaValue) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0 green:((float)((hexValue & 0xFF00) >> 8))/255.0 blue:((float)(hexValue & 0xFF))/255.0 alpha:alphaValue]

#define setIMG(name) [UIImage imageNamed:name]

#define WS(weakSelf)  __weak __typeof(&*self)weakSelf=self;
